import Layout from '@/layout'

const Router = {
    path: '/chainManagement',
    component: Layout,
    redirect: '/chain-customers-list',
    name: 'chainManagement',

    meta: {
        title: '连锁客户管理',
        icon: 'icon_shanghu0'
    },
    children: [
        {
            path: 'chain-customers-list',
            component: () => import('@/views/chainManagement/chainCustomersList'),
            name: 'chainCustomersList',
            meta: { title: '连锁客户列表', noCache: true }
        },
        {
            path: 'chain-customers-add',
            component: () => import('@/views/chainManagement/chainCustomersAdd'),
            name: 'chainCustomersAdd',
            hidden: true,
            meta: { title: '添加连锁客户', noCache: true }
        },
        {
            path: 'store-maintenance',
            component: () => import('@/views/chainManagement/storeMaintenance'),
            name: 'storeMaintenance',
            hidden: true,
            meta: { title: '门店维护', noCache: true }
        },
        {
            path: 'store-add-old',
            component: () => import('@/views/chainManagement/storeAdd'),
            name: 'storeMaintenance',
            hidden: true,
            meta: { title: '老新增门店', noCache: true }
        },
    ]
}

export default Router
